Week 11

Selection of bandwidth via cross validation

Sidenote: 3D plots and contour plots

2-dimensional KDE

Marathon data

String operations

Regular expressions

Raw strings

Character classes:

Repetitions:

Greedy vs non-greedy matches

Flags:

Anchors:

Example: Match all dollar amounts

Eample: Match all phone numbers:

re.findall()

Match groups:

Non-capturing match groups:

re.sub()